-- inherit_vine_shield
-- create by dengc
-- 继承藤蔓护盾的属性

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    -- 刷新技能后触发
    trigger = function(who, prop, arg)
        local value = 0;
        local improves = who.dbase:queryTemp("promote_skill") or {};
        for _, improve in pairs(improves) do
            if improve["prop_id"] == arg[1] then
                value = value + improve["value"];
            end
        end

        return value;
    end,

    record = function(target, prop, path)
        return false;
    end 
};
